package com.guangzi.service.impl;

import com.guangzi.mapper.BankDao;
import com.guangzi.service.AbstractService;
import com.guangzi.service.BankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class BankServiceImpl extends AbstractService implements BankService {

    private BankDao bankDAO;

    @Autowired
    public void setBankDAO(BankDao bankDAO) {
        super.setBaseDAO(bankDAO);
        this.bankDAO = bankDAO;
    }

    @Override
    public String getDeposit(String id) {
        return bankDAO.getDeposit(id);
    }

    @Override
    public String getBankName(String id) {
        return bankDAO.getBankName(id);
    }

}
